/**
Company: Sarkar software technologys
WebSite: http://www.sarkar.cn
Author: yeganaaa
Date : 5/16/18
Time: 1:21 PM
 */

package Cn.Sarkar.IMS.Entities

import Cn.Sarkar.Entities.Common.Additional.IName
import Cn.Sarkar.Entities.Common.BaseEntity
import Cn.Sarkar.Entities.IMS.IStamp
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.Core.Extensions.hasOne
import Cn.Sarkar.EntityDream.CoreEngine.RDBMS.IDataContext
import Cn.Sarkar.IMS.DataBaseDefinations.Stamps

class Stamp(DataContext: IDataContext) : IStamp, BaseEntity(DataContext, Stamps) {
    var nameID by Stamps.NameID
    override var name: IName by hasOne(Stamps.NameID) { Name(it) }
}